package com.foreknow.demo4;

/**
 * @author shkstart
 * @create 2021-07-26 15:10
 */
public class Penguin  extends Pet{
    @Override
    public void toHospital() {
        this.setHealth(70);
    }

    @Override
    public void eat() {
        System.out.println("企鹅吃鱼");
    }

    public void swimming(){
        System.out.println(this.getName()+"swimming....");
    }
}
